package core;

public enum Type {
	
	INT("int"), STRING("string"), BOOLEAN("boolean"), ARRAYOF("arrayof"), VOID("void"), CHAR("char");
	
	private final String token;

	private Type( String token ){
		this.token = token;
	}
	
	public boolean hasSameToken( String anotherToken ){
		return anotherToken.equalsIgnoreCase( getToken() );
	}

	public String getToken() {
		return token;
	}

}
